VC10HistVar

V = Variables

C = Calculation functions

The VC10HistVar function sets a result based on the value taken from a variable than other 2.
The function follows the following truth table:

Truth table

val01 > val02result = -1

All subsequent cases relate to val01 ⇐ Val02 and analyze only val03

val03 < val01result = 0
val01 ⇐ val03 < val02result = 1 if the result was = 1
result = 0 if the result was = 0
val03 >= val02result = 1

The following chart: schematic illustration of the truth table:

IMPLEMENTAZIONE

VC10HistVar (val01, val02, val03, risultato)

Parametri:

IN/OUTTIPO VARIABILENOME DI ESEMPIODIM
IN SYSTEM val01 L/S Primo valore di comparazione
IN SYSTEM val02 L/S Secondo valore di comparazione
IN SYSTEM val03 L/S Valore da comparare con val01 e val02
OUT SYSTEM risultato B Variabile contenente il risultato della comparazione secondo la tabella di verità raffigurata sopra

Esempio

Esegui la comparazione quando il flag “gfComp” viene posto a 1.

IF gfComp
	gfComp = 0
	val01 = 1000
	val02 = 5000
        VC10HistVar (val01, val02, val03, risultato)
ENDIF

Note